<?php
/**
 * Created by PhpStorm.
 * User: mac
 * Date: 2018/1/15
 * Time: 下午1:14
 */
require  '../vendor/autoload.php';
use Jenssegers\ImageHash\ImageHash;
$hasher = new ImageHash();
$distance =  $hasher->compare('forest-copyright.jpg','forest-high.jpg');

echo md5(file_get_contents('abc.png'))."<br>";
echo md5(file_get_contents('abcdef.png'))."<br>";